using MbUnit.Framework;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;
using EnterpriseLibraryContrib.PostSharp4EntLib.PolicyInjection;

namespace EnterpriseLibraryContrib.PostSharp4EntLib.Test.PolicyInjection.AttributeDrivenPolicies
{
    [TestFixture]
    public class Validation
    {
        [ValidationCallHandler]
        [StringLengthValidator(0, 5)]
        private static void Validated(string length)
        {
        }

        [Test]
        public void Test()
        {
            Validated(new string(' ', 20));
        }

    }
}